package com.yanqu.road.logic.bussiness.player;


import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.tradewar.UserTradeWarPatronsData;
import com.yanqu.road.entity.tradewar.*;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class UserTradeWarBussiness {

	public static Map<Long, UserTradeWarInfo> getUserTradeWarInfoMap(){
		return DaoHelper.getUserTradeWarInfoDaoImpl().getUserTradeWarInfoMap();
	}

	public static UserTradeWarInfo getUserTradeWarInfo(long userId) {
		return DaoHelper.getUserTradeWarInfoDaoImpl().getUserTradeWarInfo(userId);
	}

	public static boolean addUserTradeWarInfo(UserTradeWarInfo userTradeWarInfo) {
		return DaoHelper.getUserTradeWarInfoDaoImpl().add(userTradeWarInfo);
	}

	public static boolean updateUserTradeWarInfo(UserTradeWarInfo userTradeWarInfo) {
		return DaoHelper.getUserTradeWarInfoDaoImpl().update(userTradeWarInfo);
	}

	public static UserTradeWarBattle getUserTradeWarBattle(long userId) {
		return DaoHelper.getUserTradeWarDaoImpl().getUserTradeWarBattle(userId);
	}

	public static boolean addUserTradeWarBattle(UserTradeWarBattle userTradeWarBattle) {
		return DaoHelper.getUserTradeWarDaoImpl().add(userTradeWarBattle);
	}

	public static boolean updateUserTradeWarBattle(UserTradeWarBattle userTradeWarBattle) {
		return DaoHelper.getUserTradeWarDaoImpl().update(userTradeWarBattle);
	}

	public static Map<Integer, UserTradeWarBuilding> getUserTradeWarBuildingMap(long userId) {
		return DaoHelper.getUserTradeWarBuildingDaoImpl().getUserTradeWarBuildingMap(userId);
	}

	public static boolean addUserTradeWarBuilding(UserTradeWarBuilding userTradeWarBuilding) {
		return DaoHelper.getUserTradeWarBuildingDaoImpl().add(userTradeWarBuilding);
	}

	public static boolean updateUserTradeWarBuilding(UserTradeWarBuilding userTradeWarBuilding) {
		return DaoHelper.getUserTradeWarBuildingDaoImpl().update(userTradeWarBuilding);
	}

	public static LinkedList<UserTradeWarRecord> getUserTradeWarRecordList(long userId, int maxCount) {
		return DaoHelper.getUserTradeWarRecordDaoImpl().getUserTradeWarRecordList(userId, maxCount);
	}

	public static LinkedList<UserTradeWarRecord> getUserTradeWarRecordList(long userId, long selectTime) {
		return DaoHelper.getUserTradeWarRecordDaoImpl().getUserTradeWarRecordList(userId, selectTime);
	}

	public static boolean addUserTradeWarRecord(UserTradeWarRecord userTradeWarRecord) {
		return DaoHelper.getUserTradeWarRecordDaoImpl().add(userTradeWarRecord);
	}

	public static boolean updateUserTradeWarRecord(UserTradeWarRecord userTradeWarRecord) {
		return DaoHelper.getUserTradeWarRecordDaoImpl().update(userTradeWarRecord);
	}

	public static LinkedList<TradeWarNotice> getTradeWarNoticeList(long selectTime) {
		return DaoHelper.getTradeWarNoticeDaoImpl().getTradeWarNoticeList(selectTime);
	}

	public static boolean addTradeWarNoticeList(List<TradeWarNotice> noticeList) {
		return DaoHelper.getTradeWarNoticeDaoImpl().addTradeWarNoticeList(noticeList);
	}

	public static Map<String, TradeWarWanted> getTradeWarWantedMap() {
		return DaoHelper.getTradeWarWantedDaoImpl().getTradeWarWantedMap();
	}

	public static boolean addTradeWarWanted(TradeWarWanted tradeWarWanted) {
		return DaoHelper.getTradeWarWantedDaoImpl().add(tradeWarWanted);
	}

	public static boolean updateTradeWarWanted(TradeWarWanted tradeWarWanted) {
		return DaoHelper.getTradeWarWantedDaoImpl().update(tradeWarWanted);
	}

	public static Map<String, Map<Long, List<TradeWarTrackRecord>>> getTradeWarTrackRecordMap() {
		return DaoHelper.getTradeWarTrackRecordDaoImpl().getTradeWarTrackRecordMap();
	}

	public static boolean addTradeWarTrackRecord(TradeWarTrackRecord tradeWarTrackRecord) {
		return DaoHelper.getTradeWarTrackRecordDaoImpl().add(tradeWarTrackRecord);
	}

	public static boolean updateTradeWarTrackRecord(TradeWarTrackRecord tradeWarTrackRecord) {
		return DaoHelper.getTradeWarTrackRecordDaoImpl().update(tradeWarTrackRecord);
	}

	public static Map<Integer, UserTradeWarPatronsData> getUserTradeWarPatronsDataMap(long userId) {
		return DaoHelper.getUserTradeWarPatronsDaoImpl().getUserTradeWarPatronsDataMap(userId);
	}

	public static boolean addUserTradeWarPatronsData(UserTradeWarPatronsData userTradeWarPatronsData) {
		return DaoHelper.getUserTradeWarPatronsDaoImpl().add(userTradeWarPatronsData);
	}

	public static boolean updateUserTradeWarPatronsData(UserTradeWarPatronsData userTradeWarPatronsData) {
		return DaoHelper.getUserTradeWarPatronsDaoImpl().update(userTradeWarPatronsData);
	}
}
